package net.betou.core.dao;

import java.util.List;

import net.betou.common.hibernate3.Updater;
import net.betou.common.page.Pagination;
import net.betou.core.entity.UnifiedUser;

public interface UnifiedUserDao{
	public UnifiedUser getByUsername( String username );

	public List< UnifiedUser > getByEmail( String email );

	public int countByEmail( String email );

	public Pagination getPage( int pageNo, int pageSize );

	public UnifiedUser findById( Integer id );

	public UnifiedUser save( UnifiedUser bean );

	public UnifiedUser updateByUpdater( Updater< UnifiedUser > updater );

	public UnifiedUser deleteById( Integer id );
}